/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2025-04-28
**/
@Entity
@Data
@Table(name="BIS_PGJL")
public class Pgjl implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "BIS_PGJL_ID")
    @ApiModelProperty(value = "主键")
    private String bisPgjlId;

    @Column(name = "ZHID")
    @ApiModelProperty(value = "照护ID")
    private Long zhid;

    @Column(name = "XM")
    @ApiModelProperty(value = "姓名")
    private String xm;

    @Column(name = "SFZ")
    @ApiModelProperty(value = "身份证")
    private String sfz;

    @Column(name = "SQR")
    @ApiModelProperty(value = "申请人")
    private String sqr;

    @Column(name = "ZHLB")
    @ApiModelProperty(value = "照护类别")
    private String zhlb;

    @Column(name = "SNDJ")
    @ApiModelProperty(value = "失能等级")
    private String sndj;

    @Column(name = "ISFH")
    @ApiModelProperty(value = "是否符合")
    private String isfh;

    @Column(name = "PGRQ")
    @ApiModelProperty(value = "评估日期")
    private String pgrq;

    @Column(name = "PGJL")
    @ApiModelProperty(value = "评估结论日期")
    private String pgjl;

    @Column(name = "PGR")
    @ApiModelProperty(value = "评估人")
    private String pgr;

    @Column(name = "JGBM")
    @ApiModelProperty(value = "机构编码")
    private String jgbm;

    @Column(name = "ISPRINT")
    @ApiModelProperty(value = "是否打印")
    private String isprint;

    @Column(name = "C01")
    @ApiModelProperty(value = "C01")
    private Long c01;

    @Column(name = "C02")
    @ApiModelProperty(value = "C02")
    private Long c02;

    @Column(name = "C03")
    @ApiModelProperty(value = "C03")
    private Long c03;

    @Column(name = "C04")
    @ApiModelProperty(value = "C04")
    private Long c04;

    @Column(name = "C05")
    @ApiModelProperty(value = "C05")
    private Long c05;

    @Column(name = "C06")
    @ApiModelProperty(value = "C06")
    private Long c06;

    @Column(name = "C07")
    @ApiModelProperty(value = "C07")
    private Long c07;

    @Column(name = "C08")
    @ApiModelProperty(value = "C08")
    private Long c08;

    @Column(name = "C09")
    @ApiModelProperty(value = "C09")
    private Long c09;

    @Column(name = "C10")
    @ApiModelProperty(value = "C10")
    private Long c10;

    @Column(name = "C1")
    @ApiModelProperty(value = "C1")
    private Long c1;

    @Column(name = "C11")
    @ApiModelProperty(value = "C11")
    private Long c11;

    @Column(name = "C12")
    @ApiModelProperty(value = "C12")
    private Long c12;

    @Column(name = "C13")
    @ApiModelProperty(value = "C13")
    private Long c13;

    @Column(name = "C14")
    @ApiModelProperty(value = "C14")
    private Long c14;

    @Column(name = "C2")
    @ApiModelProperty(value = "C2")
    private Long c2;

    @Column(name = "C15")
    @ApiModelProperty(value = "C15")
    private Long c15;

    @Column(name = "C16")
    @ApiModelProperty(value = "C16")
    private Long c16;

    @Column(name = "C17")
    @ApiModelProperty(value = "C17")
    private Long c17;

    @Column(name = "C3")
    @ApiModelProperty(value = "C3")
    private Long c3;



    public void copy(Pgjl source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}